package Levels 
{
	import adobe.utils.CustomActions;
	import flash.display.MovieClip;
	import Objetos.Heroi;
	import Objetos.Plataforma;
	/**
	 * ...
	 * @author ...
	 */
	public class Level1 extends Level
	{
		
		public function Level1() 
		{
			
		}
		
		public function desenharTela():void 
		{
			gameConstructor = new Fase1();
			gameConstructor.x = 0;
			gameConstructor.y = 0;
			Main.getInstance().MC_tela.addChild(gameConstructor);
			
			MC_heroi = new Heroi(1);
			MC_heroi.x = 100;
			MC_heroi.y = 100;
			Main.getInstance().MC_tela.addChild(MC_heroi);
			Level.AR_herois.push(MC_heroi);
			
			MC_heroi = new Heroi(2);
			MC_heroi.x = 100;
			MC_heroi.y = 100;
			Main.getInstance().MC_tela.addChild(MC_heroi);
			Level.AR_herois.push(MC_heroi);
		}
		
		public function desenharArray():void
		{
			for (var m:int = 0; m < gameConstructor.numChildren; m++)
			{
				var mc:Object = gameConstructor.getChildAt(m);
				
				if (mc is Plataforma)
				{
					AR_plataforma.push(mc);
				}
			}
			
			trace(AR_plataforma.length);
		}
		
		override public function update():void 
		{
			super.update();
			
			//add conteudo
		}
	}

}